Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@FrankBuss
FrankBuss / emulator.cpp
Last active May 28, 2026 17:02
RISC-V emulator (RV32I only) in one C++ file
/*
See https://gitlab.com/nedopc/npc5/blob/master/emu-rv32i.c for the latest version, with more features and less bugs :-)
RISCV emulator for the RV32I architecture
based on TinyEMU by Fabrice Bellard, see https://bellard.org/tinyemu/
stripped down for RV32I only, all "gotos" removed, and fixed some bugs for the compliance test
by Frank Buss, 2018
Requires libelf-dev:
@ericvitale
ericvitale / LGOLEDCX RF Codes Base64
Last active May 28, 2026 17:03
Base64 codes to use for the LG OLED CX TVs. Should work for others.
{
"version": 1,
"key": "broadlink_remote_a043b0XXXXXX_codes",
"data": {
"tv": {
"volume_up": "JgBIAAABJZQSExITEjkSExITEhMSExIUEjgSOBITEjgTOBI4EjkSOBITEjgTExITEhMSExITEhQRORITEjgSOBM4EjgSOBM4EgANBQ==",
"volume_down": "JgBIAAABKJAWEBQRFTUVEBUQFREUERQRFTUVNhQRFTUVNRU2FTUVNhM3EzcVEBUQFREUERQRFRAVEBUQFTYUNhU1FDcUNhU1FQANBQ==",
"mute": "JgBIAAABJ5EWDxURFDYVEBUQFRAVERQRFTUVNRURFDYVNRU2FDYWNBU1FREVEBU1FRAVERQRFBEVEBU1FTYVEBU1FTUVNhU1FQANBQ==",
"input": "JgBIAAABJ5EWDxURFDYVEBUQFg8VERQRFDYVNRURFDYWNBU2FDYVNRU2FDYVEBU1FRAVERQRFRAVEBUQFTYUERU1FTUVNhQ2FQANBQ==",
"home": "JgBQAAABJpMTEhMSFDUUERQRFBEUERQSEzYUNRQRFDYTNhQ1FDUUNhMSFBEUNRQ2EzYUNRQ1FBITNhM2FBEUERQRFBITEhM2FAAFJgABJ0kUAA0F",
@manishtiwari25
manishtiwari25 / country_state.json
Last active May 28, 2026 17:00
List Of Countries With States And Other Useful Information, Updated On 05/01/2026 00:31:06
[
{
"name": "Andorra",
"countryCode": "AD",
"countryCodeAlpha3": "AND",
"phone": "376",
"currency": "EUR",
"flag": "https://www.geonames.org/flags/x/ad.gif",
"symbol": "\u20AC",
"stateProvinces": [
@ih2502mk
ih2502mk / list.md
Last active May 28, 2026 16:56
Quantopian Lectures Saved
@Lasyanga
Lasyanga / build4123.sublime4.key
Created September 18, 2022 04:24
Sublime Text 4 License Key
—– BEGIN LICENSE —–
Mifeng User
Single User License
EA7E-1184812
C0DAA9CD 6BE825B5 FF935692 1750523A
EDF59D3F A3BD6C96 F8D33866 3F1CCCEA
1C25BE4D 25B1C4CC 5110C20E 5246CC42
D232C83B C99CCC42 0E32890C B6CBF018
B1D4C178 2F9DDB16 ABAA74E5 95304BEF
9D0CCFA9 8AF8F8E2 1E0A955E 4771A576
@0xdevalias
0xdevalias / reverse-engineering-webpack-apps.md
Last active May 28, 2026 16:53
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps
@nathaningram
nathaningram / 2025-mu-dashwidgets.php
Last active May 28, 2026 16:52
Starter Site 2025 - MU Dashboard Widgets
<?php
/*
Plugin Name: Custom Dashboard Widgets
Plugin URI: https://wpnathan.com
Description: Creates Custom Dashboard Widgets for Client Websites
Version: 1.0
Author: Nathan Ingram
Author URI: https://wpnathan.com
License: GPL2
*/
@nathaningram
nathaningram / mu-security.php
Last active May 28, 2026 16:52
Starter Site 2024 Course - MU Security
<?php
/*
Plugin Name: Custom Security Functions
Description: Customized WP Security
Version: 2024.11
Plugin URI: https://wpnathan.com
Author: Nathan Ingram
Author URI: https://wpnathan.com
License: GPL2
*/